package com.fushenlan.epidemicControl.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author XUJIN
 * @DATE 2022/4/21
 * @PACKAGE_NAME com.fushenlan.po.dto
 * @VERSION 1.0
 * 小区楼栋信息表实体，对应表building_info
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class BuildingInfoDto implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 父级id 层级为1时对应居委会id,对应居委会表主键id
     */
    @ApiModelProperty(value = "父级id  层级为1 时上级代表居委会，对应居委会主键id", name = "parentId", required = true)
    private Integer parentId ;

    @ApiModelProperty(value = "小区名称", name = "communityName")
    private String communityName;

    @ApiModelProperty(value = "楼栋号", name = "buildNo")
    private String buildNo;

    @ApiModelProperty(value = "楼栋号", name = "roomNo")
    private String roomNo;
    /**
     * 小区名称
     */
    @ApiModelProperty(value = "小区名称/楼栋号/房间号", name = "name")
    private String name;

    /**
     * 楼栋号
     */
    @ApiModelProperty(value = "层别 1 小区  2 楼栋  3 房间号", name = "level")
    private Integer level;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", name = "createDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", name = "updateDate")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;
}
